package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.framework.interceptor.Authentication;
import com.ruoyi.system.api.ResponseWithData;
import com.ruoyi.web.controller.system.task.MultithreadScheduleTask;
import io.swagger.annotations.*;
import net.bytebuddy.asm.Advice;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *  定时器测试类
 * 
 * @author ruoyi
 */
@Controller
@RequestMapping("/api/cc/testController")
public class ScheduleTankController extends BaseController
{
    @Resource
    private MultithreadScheduleTask multithreadScheduleTask;
    /**
     * 验证码生成
     */
    @GetMapping(value = "/filllog")

    @Authentication(tokenRequired = true, signRequired = true)
    @ApiOperation(value = "FSE签离服务接口", httpMethod = "GET", notes = "filllog 验证")
    @ApiResponses({
            @ApiResponse(code = 500, message = "code 为 500 系统异常"),
            @ApiResponse(code = 200, message = "code 为 200 成功")
    })
    public  ResponseWithData<?> testFilllog()
    {

         multithreadScheduleTask.signOff();
        return new ResponseWithData().error().msg("系统异常").code(200);
    }


}